negotiator
Class StrategyParameters

java.lang.Object
  extended by negotiator.StrategyParameters

public class StrategyParameters
extends java.lang.Object

Simple class which stores the parameters given to a negotiation strategy, for example an concession factor.

Author:
Mark Hendrikx

Constructor Summary
StrategyParameters()
          Create an empty hashmap of parameters.
 
Method Summary
 void addVariable(java.lang.String name, java.lang.String value)
          Add a parameter to the list of parameters.
 double getValueAsDouble(java.lang.String name)
          Returns the value of the parameter with the given name as double.
 java.lang.String getValueAsString(java.lang.String name)
          Returns the value of the parameter with the given name as string.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StrategyParameters

public StrategyParameters()
Create an empty hashmap of parameters.

Method Detail

addVariable

public void addVariable(java.lang.String name,
                        java.lang.String value)
Add a parameter to the list of parameters.

Parameters:
name - of the parameter.
value - of the parameter.

getValueAsString

public java.lang.String getValueAsString(java.lang.String name)
Returns the value of the parameter with the given name as string.

Parameters:
name - of the given parameter.
Returns:
value of the parameter as string.

getValueAsDouble

public double getValueAsDouble(java.lang.String name)
Returns the value of the parameter with the given name as double.

Parameters:
name - of the given parameter.
Returns:
value of the parameter as double.